Keyframe

data class Keyframe(val time: Float, val value: KeyframeValue, val easing: KeyframeEasing = KeyframeEasing.Preset(), val spatialOut: Vector2? = null, val spatialIn: Vector2? = null)

One keyframe of a property track. Experimental: this API may change in a minor release.

Constructors

Link copied to clipboard
constructor(time: Float, value: KeyframeValue, easing: KeyframeEasing = KeyframeEasing.Preset(), spatialOut: Vector2? = null, spatialIn: Vector2? = null)

Properties

Link copied to clipboard

The curve from this keyframe to the next.

Link copied to clipboard
val spatialIn: Vector2? = null

The motion path tangent that enters the next keyframe's value, relative to that value. It sits on this keyframe, like spatialOut, so the last keyframe does not use it. Only keyframes with a KeyframeValue.Vec2 value accept it.

Link copied to clipboard
val spatialOut: Vector2? = null

The motion path tangent that leaves this keyframe's value, relative to it. Only keyframes with a KeyframeValue.Vec2 value accept it.

Link copied to clipboard
val time: Float

The normalized time in the range 0 to 1 over the duration of the block.

Link copied to clipboard

The value of the property at time.